/* Copyright (C) 2010 Luca Piccinelli
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/* 
 * File:   ml_formatters.h
 * Author: picci
 *
 * Created on December 19, 2010, 4:05 PM
 */

#ifndef ML_FORMATTERS_H
#define	ML_FORMATTERS_H

#include <string>

#include "gestface.h"
#include "common/utility_data_structures.h"

#include "formatters/formatters.h"

namespace NAMESPACE{

// ****** BayesHgWndFormatter definition ***************************************
class BayesHgWndFormatter : public AbstractFormatter{

public:
    virtual ~BayesHgWndFormatter();
    BayesHgWndFormatter();
    BayesHgWndFormatter(const BayesHgWndFormatter& f);
    BayesHgWndFormatter& operator=(const BayesHgWndFormatter& f);

    BayesHgWndFormatter(const IOKey& k);

    virtual Formatter& format() const;
    virtual Formatter& format(const IOElement& el) const;
};
// -----------------------------------------------------------------------------

// ****** BayesXMLFormatter definition ***************************************
class BayesXMLFormatter : public AbstractFormatter{

private:
    const static std::string DEFAULT_NAME;
    std::string name;

public:
    virtual ~BayesXMLFormatter();
    BayesXMLFormatter();
    BayesXMLFormatter(const BayesXMLFormatter& f);
    BayesXMLFormatter& operator=(const BayesXMLFormatter& f);

    BayesXMLFormatter(const IOKey& k, std::string _name = DEFAULT_NAME);

    virtual Formatter& format() const;
    virtual Formatter& format(const IOElement& el) const;
};
// -----------------------------------------------------------------------------

// ****** BayesImgFileFormatter definition ***************************************
class BayesImgFileFormatter : public AbstractFormatter{

private:
    const static std::string DEFAULT_NAME;
    std::string name;

public:
    virtual ~BayesImgFileFormatter();
    BayesImgFileFormatter();
    BayesImgFileFormatter(const BayesImgFileFormatter& f);
    BayesImgFileFormatter& operator=(const BayesImgFileFormatter& f);

    BayesImgFileFormatter(const IOKey& k, std::string _name = DEFAULT_NAME);

    virtual Formatter& format() const;
    virtual Formatter& format(const IOElement& el) const;
};
// -----------------------------------------------------------------------------

}

#endif	/* ML_FORMATTERS_H */

